package com.jjw.springbootcvs.pojo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author xiaojuan
 * @Date 2024/11/1
 * @Description
 */

/**
 * 入库记录
 */
public class StorageRecord {
    /**
    * 主键ID
    */
    private Long id;

    /**
    * 入库记录编码
    */
    private String srCode;

    /**
    * 商品名称
    */
    private String goodsName;

    /**
    * 商品描述
    */
    private String goodsDesc;

    /**
    * 商品单位
    */
    private String goodsUnit;

    /**
    * 入库数量
    */
    private BigDecimal goodsCount;

    /**
    * 入库商品总额
    */
    private BigDecimal totalAmount;

    /**
    * 支付状态（1：未支付 2：已支付）
    */
    private Integer payStatus;

    /**
    * 创建人id
    */
    private Long createdUserId;

    /**
    * 创建时间
    */
    private LocalDateTime createdTime;

    /**
    * 修改人id
    */
    private Long updatedUserId;

    /**
    * 修改时间
    */
    private LocalDateTime updatedTime;

    /**
    * 供货商ID
    */
    private Long supplierId;

    public StorageRecord() {
    }

    public StorageRecord(Long id, String srCode, String goodsName, String goodsDesc, String goodsUnit, BigDecimal goodsCount, BigDecimal totalAmount, Integer payStatus, Long createdUserId, LocalDateTime createdTime, Long updatedUserId, LocalDateTime updatedTime, Long supplierId) {
        this.id = id;
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierId = supplierId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSrCode() {
        return srCode;
    }

    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public BigDecimal getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(BigDecimal goodsCount) {
        this.goodsCount = goodsCount;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Long getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Long createdUserId) {
        this.createdUserId = createdUserId;
    }



    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 获取
     * @return createdTime
     */
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    /**
     * 设置
     * @param createdTime
     */
    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 获取
     * @return updatedUserId
     */
    public Long getUpdatedUserId() {
        return updatedUserId;
    }

    /**
     * 设置
     * @param updatedUserId
     */
    public void setUpdatedUserId(Long updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    /**
     * 获取
     * @return updatedTime
     */
    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 设置
     * @param updatedTime
     */
    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String toString() {
        return "StorageRecord{id = " + id + ", srCode = " + srCode + ", goodsName = " + goodsName + ", goodsDesc = " + goodsDesc + ", goodsUnit = " + goodsUnit + ", goodsCount = " + goodsCount + ", totalAmount = " + totalAmount + ", payStatus = " + payStatus + ", createdUserId = " + createdUserId + ", createdTime = " + createdTime + ", updatedUserId = " + updatedUserId + ", updatedTime = " + updatedTime + ", supplierId = " + supplierId + "}";
    }
}